package com.tongren.framework.api;


import com.tongren.framework.model.BaseModel;
import com.tongren.framework.model.BaseModelDemo;
import com.tongren.framework.model.Benefit;
import com.tongren.framework.model.News;

import java.util.ArrayList;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * zhangxu
 */
public interface Api {
    @GET("api/data/福利/{pageCount}/{pageIndex}")
    Call<BaseModel<ArrayList<Benefit>>> defaultBenefits(
            @Path("pageCount") int pageCount,
            @Path("pageIndex") int pageIndex
    );

    @GET("api/data/福利/{pageCount}/{pageIndex}")
    Observable<BaseModel<ArrayList<Benefit>>> rxBenefits(
            @Path("pageCount") int pageCount,
            @Path("pageIndex") int pageIndex
    );

    @GET("api/v1/news/getNewsList")
    Observable<BaseModel<ArrayList<News>>> getNewsList(
//            @Path("pageCount") int pageCount,
//            @Path("pageIndex") int pageIndex
    );
}
